package com.wf.feign;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by wufei on 2017/8/8.
 */
@FeignClient(name = "provide-user")
public interface UserFeignClient {

    @RequestMapping("user/{id}")
    User findByid(@RequestParam("id") Long id);
}
